<template>
  <section class="header-page">
    {{title}}
    <router-link tag="span" class="desc" :to="descTo">{{desc}}</router-link>

  </section>
</template>

<script>
export default {
  name: 'header-page',
  props: {
    title: {
      type: String,
      default: ''
    },
    desc: {
      type: String,
      default: null
    },
    descTo: {
      type: String,
      default: '/'
    }
  }
}
</script>
<style lang="scss" scoped>
.header-page {
  text-align: center;
  position: relative;
  font-size: 42px;
  line-height: 100px;
  border-bottom: 1px solid #ccc;
  .desc {
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    text-decoration: none;
    color: #737373;
    font-size: 25px;
    line-height: 100px;
    cursor: pointer;
  }
}
</style>
